/*
 * DataInfo.h
 *
 *  Created on: Aug 19, 2016
 *      Author: ubuntu
 */

#ifndef DATAINFO_H_
#define DATAINFO_H_

#include <iostream>
#include <vector>
#include "common.h"
using namespace std;

class DataInfo {
public:
	DataInfo();
	virtual ~DataInfo();

	virtual bool parse(unsigned char *buf, size_t len, int add_head, int add_tail);
	virtual void writelog(const char *path);
//	virtual int sendBuf(unsigned char *dst, const char *src, size_t len);

protected:
	int m_head;
	int m_tail;
};



#endif /* DATAINFO_H_ */
